package com.anlgin.anl_tea.service;

import com.anlgin.anl_tea.entities.Commodity;
import com.anlgin.anl_tea.entities.Order;

import java.util.List;

public interface IOrderService {

    public void insertOrder(Order order);

    public void insertOrderCommodity(Commodity commodity);

    public List<Order> getOrderByState(Order order);

    public List<Commodity> getCommodityByOrder(Order order);

    public List<Order> getHistoryOrder(Order order);

    public List<Order> getCurrentOrder();

    public List<Order> getCancelOrder();

    public List<Order> getFinishOrder();

    public List<Order> getWaitPayOrder();

    public void changeOrderToComplate(Order order);
}
